package No1_100.No21_30.RemoveElement_27;

public class Solution {
    public int removeElement(int[] nums, int val) {
        int ret = 0;
    	for (int i = 0; i < nums.length; i++) {
			if (nums[i] == val) {
				
			}
			else{
				nums[ret++] = nums[i];
			}
		}
        
    	return ret;
    }
}
